Optimal. Leaf size=43 \[ \frac {\cosh (2 a) \text {Chi}\left (2 b x^n\right )}{2 n}+\frac {\log (x)}{2}+\frac {\sinh (2 a) \text {Shi}\left (2 b x^n\right )}{2 n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {5471, 5427,
5425, 5424} \begin {gather*} \frac {\cosh (2 a) \text {Chi}\left (2 b x^n\right )}{2 n}+\frac {\sinh (2 a) \text {Shi}\left (2 b x^n\right )}{2 n}+\frac {\log (x)}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 5424
Rule 5425
Rule 5427
Rule 5471
Rubi steps
\begin {align*} \int \frac {\cosh ^2\left (a+b x^n\right )}{x} \, dx &=\int \left (\frac {1}{2 x}+\frac {\cosh \left (2 a+2 b x^n\right )}{2 x}\right ) \, dx\\ &=\frac {\log (x)}{2}+\frac {1}{2} \int \frac {\cosh \left (2 a+2 b x^n\right )}{x} \, dx\\ &=\frac {\log (x)}{2}+\frac {1}{2} \cosh (2 a) \int \frac {\cosh \left (2 b x^n\right )}{x} \, dx+\frac {1}{2} \sinh (2 a) \int \frac {\sinh \left (2 b x^n\right )}{x} \, dx\\ &=\frac {\cosh (2 a) \text {Chi}\left (2 b x^n\right )}{2 n}+\frac {\log (x)}{2}+\frac {\sinh (2 a) \text {Shi}\left (2 b x^n\right )}{2 n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 36, normalized size = 0.84 \begin {gather*} \frac {\cosh (2 a) \text {Chi}\left (2 b x^n\right )+n \log (x)+\sinh (2 a) \text {Shi}\left (2 b x^n\right )}{2 n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 5.18, size = 40, normalized size = 0.93
method | result | size |
risch | \(\frac {\ln \left (x \right )}{2}-\frac {{\mathrm e}^{-2 a} \expIntegral \left (1, 2 b \,x^{n}\right )}{4 n}-\frac {{\mathrm e}^{2 a} \expIntegral \left (1, -2 b \,x^{n}\right )}{4 n}\) | \(40\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 37, normalized size = 0.86 \begin {gather*} \frac {{\rm Ei}\left (2 \, b x^{n}\right ) e^{\left (2 \, a\right )}}{4 \, n} + \frac {{\rm Ei}\left (-2 \, b x^{n}\right ) e^{\left (-2 \, a\right )}}{4 \, n} + \frac {1}{2} \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.60, size = 69, normalized size = 1.60 \begin {gather*} \frac {{\left (\cosh \left (2 \, a\right ) + \sinh \left (2 \, a\right )\right )} {\rm Ei}\left (2 \, b \cosh \left (n \log \left (x\right )\right ) + 2 \, b \sinh \left (n \log \left (x\right )\right )\right ) + {\left (\cosh \left (2 \, a\right ) - \sinh \left (2 \, a\right )\right )} {\rm Ei}\left (-2 \, b \cosh \left (n \log \left (x\right )\right ) - 2 \, b \sinh \left (n \log \left (x\right )\right )\right ) + 2 \, n \log \left (x\right )}{4 \, n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cosh ^{2}{\left (a + b x^{n} \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\mathrm {cosh}\left (a+b\,x^n\right )}^2}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________